// ==UserScript==
// @name		Auto Access Google Analytics
// @author		Erik Vold
// @datecreated	2008-7-9
// @lastupdated	2008-11-9
// @namespace	autoAccessAnalytics
// @include		http://www.google.com/analytics/
// @include		https://www.google.com/analytics/
// @include		http://www.google.ca/analytics/
// @include		https://www.google.ca/analytics/
// @version		1.1
// @description	Auto presses the "Access Analytics" button, if it is displayed.
// ==/UserScript==

autoAccessAnalytics = {};

autoAccessAnalytics.run = function(){
	/// redirect the user to the desired link
	window.location  = document.getElementById('access_analytics').href;
	
	return true;
}

// try to run the userscript
try{
	autoAccessAnalytics.run();
}
catch(e){}